import { baseAjax } from "../utils/baseAjax";
// 区域树形列表
export const listFlow = (data, successHandle) => {
  return baseAjax({
    url: "/api/index/exam/flow/list",
    type: "post",
    data,
    success: successHandle,
  });
};
export const wechatUser = (data, successHandle) => {
  return baseAjax({
    url: "/api/common/check/user/wechat",
    type: "post",
    data,
    success: successHandle,
  });
};
export const configIndex = (data, successHandle) => {
  return baseAjax({
    url: "/api/index/config",
    type: "post",
    data,
    success: successHandle,
  });
};

export const getCourseDetailById = (id, successHandle) => {
  return baseAjax({
    url: "/api/index/course/" + id,
    type: "get",
    success: successHandle,
  });
};
